package com.zunipe.ftpe;

public class DownloadTask {
    private String remotePath;
    private String fileName;
    private OnDownloadComplete callback;

    public DownloadTask(String remotePath, String fileName, OnDownloadComplete callback) {
        this.remotePath = remotePath;
        this.fileName = fileName;
        this.callback = callback;
    }

    public String getRemotePath() {
        return remotePath;
    }

    public void setRemotePath(String remotePath) {
        this.remotePath = remotePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public OnDownloadComplete getCallback() {
        return callback;
    }

    public void setCallback(OnDownloadComplete callback) {
        this.callback = callback;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof DownloadTask)) {
            return false;
        }
        DownloadTask downloadTask = (DownloadTask) obj;
        return remotePath.equals(downloadTask.remotePath) && fileName.equals(downloadTask.fileName);
    }
}
